package com.todod.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.todod.entity.QueryEntry;
import com.todod.model.CatalogManage;

/**
 * @author dyl
 * @date 2022-09-05
 */
public interface CatalogManageMapper extends BaseMapper<CatalogManage> {

	IPage<CatalogManage> getListPage(Page<CatalogManage> page, @Param("queryEntry") QueryEntry queryEntry);

	Integer getSortNumByDepartIdAndParentId(@Param("parentId") Long parentId);

	CatalogManage getInfo(@Param("code") String code);

	CatalogManage getFileAuthorityByUserId(@Param("userId") Long userId);

}
